//
//  JMHomeModel.h
//  NewiOSProject
//
//  Created by MAC on 2023/9/8.
//  Copyright © 2023 范智渊. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//1./api/loan/get-next-step

//2.api/user/creditInfo
//        "data" : {
//          "used" : 0,
//          "extraAmountIsNotReminded" : false,
//          "unused" : 500,
//          "total" : 500,
//          "locking" : 0
//        },
//
//3.api/order/check-user-loan-status 放款状态接口
//        "data" : {
//          "isVerifyFailed" : false,
//          "isHaveRepayment" : false,
//          "loanFail" : false,若用户放款失败 为true
//          "showRepayEntry" : false,
//          "applyCondition" : true
//        },

//4./api/auth/pre-check-status 弃用

//5.api/common/homePop
//        "data" : {
//          "ficoPop" : false,
//          "firstLoanSuccess" : false,
//          "raiseAmount" : false,
//          "cloudunPayed" : false,
//          "loanFail" : false,//审核是否未通过
//          "hadLoan" : false,
//          "fICOPayed" : true,
//          "loanCheck" : false
//        },

//6.api/third/cr/h5/getCRSource
//"data" : {
//  "ficoExpire" : false,
//  "cloudunExpire" : false,
//  "ficoInfoError" : false,
//  "ficoshow" : false
//},
//7.api/order/repaid-order2

//8.api/index/isJumpProductOrCpi
//to_product（查看产品）、no_product_no_cpi（不能看产品也不能去看cpi）、to_cpi（查看cpi）

@interface JMHomeModel : NSObject

@property (nonatomic, assign)BOOL isHaveRepayment;
@property (nonatomic, assign)BOOL showRepayEntry;
@property (nonatomic, assign)BOOL applyCondition;

///放款失败，即【loanFail】字段为true 贷款审核失败
@property (nonatomic, assign)BOOL loanFail;

///信用报告弹窗 true 弹窗
@property (nonatomic, assign)BOOL ficoPop;
@property (nonatomic, assign)BOOL firstLoanSuccess;
///是否展示还款弹窗
@property (nonatomic, assign)BOOL raiseAmount;
///预检未通过 弹窗   预检未通过点击「Puntuacion de credito」跳转到「信用报告Cloudun」页面并引导购买cloudun
@property (nonatomic, assign)BOOL loanCheck;
///判断是否展示审核失败弹窗
@property (nonatomic, assign)BOOL showLoanFailAlert;


//● 先调用是否展示信用报告接口，如果返回值为false，则直接隐藏信用报告区域
//● 再调用首页弹窗信息接口，根据返回值展示相应的信用报告区域：
@property (nonatomic, assign)BOOL showReportView;
//1. hadLoan=true && fICOPayed=false 展示FICO区域
//2. hadLoan=false && cloudunPayed=false 展示Cloundun区域

@property (nonatomic, assign)BOOL hadLoan;
@property (nonatomic, assign)BOOL fICOPayed;
@property (nonatomic, assign)BOOL cloudunPayed;

@property (nonatomic, assign)BOOL extraAmountIsNotReminded;

@property (nonatomic, assign)BOOL ficoExpire;
@property (nonatomic, assign)BOOL cloudunExpire;
@property (nonatomic, assign)BOOL ficoInfoError;
@property (nonatomic, assign)BOOL ficoshow;




@property (nonatomic, strong)NSNumber *total;
@property (nonatomic, strong)NSNumber *unused;
@property (nonatomic, strong)NSNumber *locking;
@property (nonatomic, strong)NSNumber *used;
//to_product（查看产品）、no_product_no_cpi（不能看产品也不能去看cpi）、to_cpi（查看cpi）
@property (nonatomic, strong)NSString *CPIString;
@property (nonatomic, strong)NSString *stepString;


@end

NS_ASSUME_NONNULL_END
